﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace lin_cms_dotnet_core.Models
{
    [Table("lin_log")]
    public partial class LinLog
    {
        [Key]
        [Column("id", TypeName = "int(10) unsigned")]
        public uint Id { get; set; }
        [Column("message")]
        [StringLength(450)]
        public string Message { get; set; }
        [Column("user_id", TypeName = "int(10) unsigned")]
        public uint UserId { get; set; }
        [Column("username")]
        [StringLength(24)]
        public string Username { get; set; }
        [Column("status_code", TypeName = "int(11)")]
        public int? StatusCode { get; set; }
        [Column("method")]
        [StringLength(20)]
        public string Method { get; set; }
        [Column("path")]
        [StringLength(50)]
        public string Path { get; set; }
        [Column("permission")]
        [StringLength(100)]
        public string Permission { get; set; }
        [Column("create_time", TypeName = "datetime(3)")]
        public DateTime CreateTime { get; set; }
        [Column("update_time", TypeName = "datetime(3)")]
        public DateTime UpdateTime { get; set; }
        [Column("delete_time", TypeName = "datetime(3)")]
        public DateTime? DeleteTime { get; set; }
    }
}
